<?php

class Materials_Table_Material extends Workset_Db_Table {

	protected $_name = 't_material';

    protected $_primary = 'id';

    protected $_referenceMap = array(
    	'category' => array(
            'columns' 		=> 'category_id',
            'refTableClass' => 'Materials_Table_Category',
            'refColumns' 	=> 'id'
        ),
		'catalogue_category' => array(
            'columns' 		=> 'category_id',
            'refTableClass' => 'Catalogue_Table_Category',
            'refColumns' 	=> 'id'
        ), 
    );

    protected $_dependentTables = array(
        'Materials_Table_Material2Category',
		'Materials_Table_Material2CatalogueCategory'
    );

}

?>